package P3.T03;

import java.util.Arrays;
import java.util.Iterator;

public class T03 {
    public static void main(String[] args) {
        Cat[] a={new Cat(1,3),new Cat(8,2),new Cat(2,18),new Cat(6,12)};
        Sorter.sort2(a);
        for(Cat c:a) System.out.println(c);
        //s.sort(a,new CatWeightComparator());
        //s.view();
       // for(Cat c:a) System.out.println(c);
//        Iterator<Cat> it= Arrays.stream(a).iterator();
//        while(it.hasNext()){
//            System.out.println(it.next());
//        }
//        Cat c=new Cat(1,10,18);
//        for(int i:c) System.out.printf("第%d根胡子\n",i);
    }
}

